refactored controller code, added model logic for restaurant search, need to write model tests