removed unnecessary attributes from twig