refactoring TimeLineActivity