further improved custom panel setting.
support panel hiding.