implementation of Template View, view rendering