changes to legend and index page