search view-function that renders the 'index.html' template