Change to using remove_node() for removing toolbar menu items