Made toggle buttons behave better.