add delete buttons to events on resource page
and fix bug in create user and agent form