Add legend to index view