updating purchase page