ajax handling for comments pagination