updated to support mobile scrolling