Update: Added flag that allows collapsing of panel when main receives events.