make attachments dialog cancelable