         @searchThemesButton.addClass('selected')
         @searchPackagesButton.removeClass('selected')
         @searchEditorView.setPlaceholderText('Search themes')
+        @loadFeaturedPackages(true)
         @performSearch()
 
   performSearch: ->

        @searchPackagesButton.addClass('selected')
        @searchThemesButton.removeClass('selected')
        @searchEditorView.setPlaceholderText('Search packages')
        @performSearch()



      container.append(packageRow)
      packageRow.append(new AvailablePackageView(pack, @packageManager))

  filterPackages: (packages, themes) ->
    packages.filter ({theme}) =>
      if themes
        theme
      else
        not theme

  # Load and display the featured packages that are available to install.
  loadFeaturedPackages: (loadThemes) ->
    loadThemes ?= false
    @loadingMessage.show()

    @packageManager.getFeatured()
      .then (packages) =>
        packages = @filterPackages(packages, loadThemes)
        @loadingMessage.hide()
        @addPackageViews(@featuredContainer, packages)
        if loadThemes
          @featuredHeading.text 'Featured Themes'
        else
          @featuredHeading.text 'Featured Packages'

      .catch (error) =>
        @loadingMessage.hide()
        @featuredErrors.append(new ErrorView(@packageManager, error))
