moved addevent form creation and processing into one view function