modified submitMainForm