adding program delete event, program edit event by dragging