fix bugs relating to panels collapsing and multiple bindings of submit events