Fixed paging bugs

- fixed bug “Edit page: removing page 1 then go to page 0”
- fixed bug “Preview page: thumbnails page num not updated after adding
/ deleting pages”