extracting timeline playback functionality to class