Added the ability to pass variables to the view