Encapsulate search bar and sorting controls in a view