figured out how to pass variables from controllers to views