editing navbar to handle session