adding header/content visibility check