Fix trash/delete button toggle logic