Trying to delete items locks up the GUI