Added pages to paginator and disabled next and previous buttons dependent on model state