added controller for form