Update layout of legend