added the necessary magic for per-tab header modifications to actually work