Hide panels when switching urls