finish the function of add edit and delete event