new public function to load values from form