upload or remove document