add function: swtichToNativeapp and switchToWebview