Fixed broken code in the api, due to changes.
Added search link to the base template.