add flag and new action to find out if a new element is in the process of being added