optimize View,and add base.template method,and delete Template class