passing data into views via instance variables