refactory group nav