changed remove function to function with GUI
changed remove function to function with GUI