clean up formatting for index file