fixed issue where menu wasn't displayed properly on mobile or small screens