wrap dialog calls in NSAutoreleasePool