template rendering but not showing data