delet the unnecessary HTML