passing data to template