adding a way to remove an element before the file is saved as a wid into storage