fixing scroll position when move from one menu to other menu