add ajax to pagination