added nbsps to prevent header widows
code cleanup