hide delete button when not needed