add preExecuteCommand to Controller
change completely to twig-templates