added routing, split layout templates