rename ns.addTabConstructor to registerTab and expose
example of new tab