Move the main "app" into an own file