optimize hidden panel when update code