search and nav put into templates