formatting changes in controller and form type