Move form code on result_portal