fixed delete button and destroy method