change scroll logic