Move the search api into its own view