Replacing docking/undocking of CS elements