Code refactoring around Launcherbutton