add new functions to show page numbers
add attribute to show page number