Added the code for sub-tabs. Needs the updated xml.