fixing delete button visibility