get_form_node method added tidy up the code

and to make it easier to modify this method in plugins