adjust pagination:moving forward / backword