implemented twig layout system