addElement now uses selectElement, like it should have done