Page formatting and cleanup