added caching
added error check for nil search term
fixed null check
removed controller spec test
added view for index