improved scroll logic.