implemented a show detail button and a legend style appearance for the display area