hooked up layouts and routers somewhat