edit margin on legend