added extraHead variable to pages