added automatic hiding