Added datepicker to edit events as well