refactor model menugroup