add View template class