Implementing search controller and view