Modification of button states