rename and delete unneeded HTML