added navbar functionality to cause template