fix toggle buttons so .hidden is applied appropriately