hide panel when empty