add alert message after deleting snippet