Small tidies to endnote functionality