user router.login instead of change the location of window