attached view to data