Run app in main