adding pages to paginate
Merge branch 'fix' into dev_thiago