Edit start and end time