Main app file