delete unneccessary message from html