deal with currentPage in mapeditor