add and remove document at model save and delete