change nav js bug