edit purchase view