Condensed some code dealing with the timeline selector and changed the way adding a new layer with different start/end data dates works