refactored out the timeline drawing functions to a different class