Add form factory to the form creation