Cleaning up the generated page