removed delegate function. does not close window when successful; instead only hides it. updated to podspec 0.0.6