Made scrolling menu more flexible