Fixed some issues

Fixed an issue with language translation in a popup menu
Fixed an issue where some items weren’t previewed properly
Fixed an issue where the divider item would show up even if it was
invalid in that state