bugfix: correctly remove exit selection from dom