Modified cleaning page/body logic