added prompt before delete or update