init route and app