adding timeline functionality. still buggy.