Delete button showhide logic