added confirm dialog before submitting/attaching bug

this solves issue #21