cleanup app and moved $rootScope.showSidebarMenu = $('.row-offcanvas').length > 0; to config