function removal now works globally, removed error on empty flyout category