Added autofocus to window