fix header styling
Cleaned up layout, move Page URL generation to correct place.