refactor global menu rendering to reduce code repetition
fix weird bug where nameless features would be highlighted when highlighting a region