Added method setFocusToNewTab

 * this method is used to automatically switch from the main view
   to the newest tab (i.e the one farthest to the right) when the
   user for example does a search.