Fix for Window does not get focus on IE8

Added a Timeout to fix IE8 issue: on IE8 the dialog did not get focus, adding the timeout fixes the problem.