added openLink custom function for webapp