sorted out the tab adding business.

took weeks in dojo to not figure it out. 2 hrs in jquery-ui .