added routing with basic templates