implemented forceCollapsePanel method.