futher fix #77 to keep the delete button enabled if editing requirement