change nav functionality