navigation, template and ajax