Wired up the exclusion of 'new' documents from the search to the buttons.