modify event and rebuild tab widget