Mutation observer refactoring. fixing of delete all case on upload