moved helper methods to custom form builder