Working multi-page tabs with single module class and pagetype enum