passing variables to the views