Implemented search controller with basic functionality