integrated uninstall command on the remove button and reinstall (update) on undo