added loging dialog redirection