insert flexbox for layout, optimize selectors for country switcher