Created user-gen view and wrote same route to return view. That works, but first attempt at calling the user gen function did not.