Search bar submits to search function