changing the formbuilder function