Added legend dialog