passing instance variables from controller to the view