fixed nullpointer bug on dismiss of dialog
fixed httpresponse delegate bug -- temporarily = not pretty