fixed bugs with edit end time/date