use the remove data to properly reset the element