added confirm message and add log updated