Patch 3

add confirm/dialog mode