pass variables to views