wiring up the delete event and fixing edit roles in sample app