finished interface for search