adding views & data containers in template class