Adding start and end date functionality