added 'event' in submit callback