Set form delegate when assigning form to a controller