prevent flickering when opening a url with default browser