refactoring the uinavigation items color code