modified the merge_form logic in base helper