added openUrl function for Android/iOS