Changed catalogue controller so that it checks to see if the search is empty. then returns #