add controller for form