minor bugfix with button states