create helper method for nav