implemented toggle buttons #248