sample of getting data to template