delete comment function called when new html is inserted