search threw an exception...this is now fixed :sob: fixes #338

...but we should refactor the controller and add tests for the helper
methods