created base.html and added template inheritance to index