r1112 + initial code for dynamic tabs and triggers