added update page numbers and added export type to export