fixed uploading and deleting