changed behavior of some buttons to toggles