ADD dry code for nav bars