Refactor lunching main app