added ability to undo remove and scanned actions