addControllerbutton refactor