The undisplayItem method from the Display class now removes the elements instead of simply detaching them.