add timeline logic

Signed-off-by: haposan06 <johaposan@gmail.com>