added templates for codebook views