set the the basic function of the add/get/delete events