diff --git a/src/scripts/librarymenu.js b/src/scripts/librarymenu.js
index 8ba696ee25..a8c9d99be5 100644
--- a/src/scripts/librarymenu.js
+++ b/src/scripts/librarymenu.js
@@ -88,9 +88,47 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
function refreshLibraryInfoInDrawer(user, drawer) {
var html = "";
- html += '
', html += '", html += '", html += '";
+ html += '';
+ html += '";
+ html += '";
+ html += '";
+
var localUser = user.localUser;
- localUser && localUser.Policy.IsAdministrator && (html += '"), html += '", navDrawerScrollContainer.innerHTML = html;
+ if (localUser && localUser.Policy.IsAdministrator) {
+ html += '"
+ }
+
+ html += '";
+
+ // add buttons to navigation drawer
+ navDrawerScrollContainer.innerHTML = html;
+
+ // bind logout button click to method
var btnLogout = navDrawerScrollContainer.querySelector(".btnLogout");
btnLogout && btnLogout.addEventListener("click", onLogoutClick)
}