remove inserted content on dialog close