header common code moved to layout page