Fixed welcome dialog and post dialog execution.

Fixed problems related to application moving to the background, esp.
while showing instructions from welcome screen.