Added order history pages and logic