refactored search
add text search
add text search take 2