extract resize
fix pageNum
Merge branch 'dev'