remove location.href and check wallet open before some request