created controller for searches