fixed multiple calls to page.open