hide view and delete button