remove widget html when it is deleted