New datepicker, code cleanup

cleaning up code, using new datepicker for event addition