moved twig setup to includes/templating.php, worked on edit.php twig