added nav bars and template graph and history pages