fixed problem with page number

for home controller and thread view controller