title: How to create a chrome extension with multiple views
body: <p>I've been looking for sometime and cannot find a way to switch between different html views in a chrome extension. I am creating and extension with user log in and want to switch to a profile.html view once the user logs in. I've tried the way below but this just opens a popup window, is there away to do it where it loads the html page into the current extension view? Or is the only way to edit the extension view through javascrip?</p>
  
  <pre><code>    chrome.windows.create(
        {
          tabId:      newTab.id,
          type:       "popup",
          url:        chrome.extension.getURL('user_profile.html'),
          focused: true
        }, function(window){
            //
          });
    });
  </code></pre>