added named routes and app template stuff