Remove unnecessary return statements.
Rewrite search UI as rest + ajax.