add drag and delete function