Implemented order details printing.
Refactored all pagination and sorting to work with Ajax.