replaced togglebutton with custom two state button