Improved styling of legend and made cell selection look good on firefox as well