add possibility to define start and end time of event