added template views code