prompt a confirmation dialog if the user is going to overwrite file