fix issue where hiding the menu on narrow viewports remains hidden on
wider viewports