remove functionality of delete button to restore new button, problem solving weird error