created a layout for common html elements that go on several pages and refactored the index file to contain just content