added ask before delete functionality