$tree->fid('links')->detach unless $args{started};
my $status = ($args{time} < $args{start} ? 'starts' : 'ends');
$tree->fclass('timer')->attr('data-stop', $status eq 'ends' ? $args{stop} : $args{start});
$tree->fid('links')->detach unless $args{started};
my $status = ($args{time} < $args{start} ? 'starts' : 'ends');
$tree->fclass('timer')->attr('data-stop', $status eq 'ends' ? $args{stop} : $args{start});