updating index method to include html