Added support for expandPanel,collapsePanel,hidePanel and showPanel before first layout