remove the active_panel when we close it