Added dialog box after submitting an event