refactor
handle click event at timeline