fix template views