added function to remove modal contents