created search template and added public search results if user logged in