working on the click function of the timeline dots