refactoring launcher and application based on weblauncher project