Cleaned up the timeline class and put the views into xml