speed up remark sampling algorithm and added automatic timeline refresh during playback