add ajax to pagination
refactor last commit
Merge branch 'pagination-ajax' into development