add timeline functionality