confirmation dialog resets click handler to avoid oopses. fixes #86