Fix category panel typos and breaking

when removing a category. Also, a plugin with commands loading while the
commands tab is open now immediately adds the commands to the list.