removed redundancy in html template code through extending a base template