search input extracted to a view