added pages; added receipt functionality