added navigat toggle javascript