Created pages for sales and purchase histories, updated related logic