update legend style