update of removeFromContainer commands