moved event form functionality to plugin