Add confirmation dialog before saving