Starting to work on grabbing date with new function onDateChange instead of inside saveEvent