Can now pass variables to a view