refactor how page scroll get disabled on a poplist