Added template inheritance and fixed search urls.