added file upload/removal on purchases