Added crawler logic to search controller