additional dialog handling & activity lifecycle fixes