updated search controller & views file