add Tablist and PopupManager codes