added template class and associate with user page