Refactored twig extension datagrid widgets rendering