Refactor time line page