refactoring getting the timeline views