updated ui, togglebuttons method