active switching of nav