Expose tab_selector as a plugin and fix up its template