delete edit add popup function