Added type='button' attribute to buttons to prevent create-new-event form from submitting when clickd