diff --git a/ui/scripts/cloud.core.router.js b/ui/scripts/cloud.core.router.js
index d1f89f836da..f2a5626b6b2 100644
--- a/ui/scripts/cloud.core.router.js
+++ b/ui/scripts/cloud.core.router.js
@@ -92,10 +92,26 @@ function routerJsonToDetailsTab() {
var $thisTab = $("#right_panel_content").find("#tab_content_details");
$thisTab.find("#tab_container").hide();
$thisTab.find("#tab_spinning_wheel").show();
+
+ //uncomment the following section when Bug 8578("listRouters API doesnt' take in id parameter correctly") is fixed.
+ /*
+ $.ajax({
+ data: createURL("command=listRouters&id="+jsonObj.id),
+ dataType: "json",
+ async: false,
+ success: function(json) {
+ var items = json.listroutersresponse.router;
+ if(items != null && items.length > 0) {
+ jsonObj = items[0];
+ $midmenuItem1.data("jsonObj", jsonObj);
+ }
+ }
+ });
+ */
- $thisTab.find("#grid_header_title").text(fromdb(jsonObj.name));
-
+ $thisTab.find("#grid_header_title").text(fromdb(jsonObj.name));
setVmStateInRightPanel(fromdb(jsonObj.state), $thisTab.find("#state"));
+ $thisTab.find("#id").text(fromdb(jsonObj.id));
$thisTab.find("#ipAddress").text(fromdb(jsonObj.publicip));
$thisTab.find("#zonename").text(fromdb(jsonObj.zonename));
$thisTab.find("#name").text(fromdb(jsonObj.name));
diff --git a/ui/scripts/cloud.core.systemvm.js b/ui/scripts/cloud.core.systemvm.js
index 0c0e049af9c..0d848a6347d 100644
--- a/ui/scripts/cloud.core.systemvm.js
+++ b/ui/scripts/cloud.core.systemvm.js
@@ -84,8 +84,20 @@ function systemvmJsonToDetailsTab() {
$thisTab.find("#tab_container").hide();
$thisTab.find("#tab_spinning_wheel").show();
- $thisTab.find("#grid_header_title").text(fromdb(jsonObj.name));
+ $.ajax({
+ data: createURL("command=listSystemVms&id="+jsonObj.id),
+ dataType: "json",
+ async: false,
+ success: function(json) {
+ var items = json.listsystemvmsresponse.systemvm;
+ if(items != null && items.length > 0) {
+ jsonObj = items[0];
+ $midmenuItem1.data("jsonObj", jsonObj);
+ }
+ }
+ });
+ $thisTab.find("#grid_header_title").text(fromdb(jsonObj.name));
resetViewConsoleAction(jsonObj, $thisTab);
setVmStateInRightPanel(fromdb(jsonObj.state), $thisTab.find("#state"));
$thisTab.find("#ipAddress").text(fromdb(jsonObj.publicip));