wait to reassign currentPage