fixed scroll issues due to not saving doctype and outer html tag