Added legend to each page