moved toggle header up in the window initial hash logic