return elements on close