Changing local of button