added functionality for passing values to Results page