added android specific redirection and wait dialogs