menu closing when small screen user scrolls bug fix