Refactored code to include a swipe right gesture to open second view and a swipe left gesture to save the event title and date, then close the second view.