Avoid declaring unneeded functions on unload; begin work on registering dynamic context-menu items