syncing offset and currentPage