function renderDashboard() {
        var boldbiEmbedInstance = BoldBI.create({
            serverUrl: rootUrl + siteIdentifier,
            dashboardId: dashboardId,
            embedContainerId: "dashboard-container",// This should be the container id where you want to embed the dashboard
            authorizationServer: {
                url: "http://localhost:8080/embeddetail/get"
            },
            beforeNavigateUrlLinking: function(args) {
                $("#target-dialog").html("");
                args.cancel = true;

                // creating a div element specifically for a dialog popup.
                $('body').append(
                    $('<div>').attr('id', 'target-dialog').append(
                        $('<div>').attr('id', 'dialog-container')
                    )
                );
                var dialogContent = document.createElement("div");
                dialogContent.id = "urlLink-content";

                // Create a popup dialog box to display a url linking dashboard.
                var dialogContent = new window.ejs.popups.Dialog({
                    isModal: true,
                    showCloseIcon: true,
                    target: document.getElementById("target-dialog"),
                    content: dialogContent.outerHTML
                });
                dialogContent.appendTo('#dialog-container');

                // Retrieve the linking parameter and its corresponding value of the widget column to form url parameter.
                var filterValue = args.linkInfo.parameterDetails[0].parameter + " = " + args.linkInfo.parameterDetails[0].value;
                var urlLinking = BoldBI.create({
                    serverUrl: rootUrl + siteIdentifier,
                    dashboardId: dashboardId,
                    authorizationServer: {
                        url: "http://localhost:8080/embeddetail/get"
                    },
                    embedContainerId: "urlLink-content", // This should be the container id where you want to embed the dashboard
                    filterParameters: filterValue // The url parameter which was retrieved from the linking information.
                });
                urlLinking.loadDashboard(); // Load the dashboard in the dialog popup.
            }
        });
        boldbiEmbedInstance.loadDashboard();
    }