Added base template and modified the index template to inherit from the base