edit legend