Updates legends