added create and delete event handlers