fixed when to hide headerContents