updated GetParams to work with new form parameters