Add delete and update alert function.