cleaning up code, using new datepicker for event addition