updated form class to work with twig