refactored NewSearchController