adding postMessage on link click.