Updated search controller that should have been commited with the previous commit