old_contents: var app = angular.module('hap', ['ngMaterial']);
  
  app.controller('MainCtrl', ['$mdSidenav', 'webEvents', function($mdSidenav, events) {
    this.toggleSidenav = function(menuId) {
      $mdSidenav(menuId).toggle();
    };
    
    this.send = function() {
  	  events.emit("message", "It Works!");
    };
    
    events.on("message", function (msg) {
      console.log(msg);
    });
  }]);
  
  
new_contents: var app = angular.module('hap', ['ngMaterial']);
  
  app.controller('MainCtrl', ['$mdSidenav', 'webEvents', '$window', function($mdSidenav, events, $window) {
    this.toggleSidenav = function(menuId) {
      $mdSidenav(menuId).toggle();
    };
    
    this.send = function() {
  	  events.emit("message", "It Works!");
    };
    
    events.on("message", function (msg) {
      console.log(msg);
    });
    
    this.openEditor = function() {
      $window.open('/red', '_blank');
    };
  }]);
  
  
subject: add open editor side nav command