fixing template views