added named routes to express app and used it in layout template.