add pagination method in model
inactivates 0 page from pagination