add nav bar session constrain.