Hide panel when new tab opened