fixed naming

delAttachment = selectedAttachment
ofg = openfiledialog