Added view code for event creation functionality