FlexNav code