Select current window after a refresh