Add functions for adding and removing timelines