adding externally logic to client side pagination.
adding externally constants.
Merge remote-tracking branch 'origin/master'