I'm not knowing how to use tabs :D

I’m developing an app that needs a 3 principal tabs and in the tab1 need 3 more tabs.

I don’t know how to explain it with words, check out my codepen at http://codepen.io/anon/pen/Ipzob.

In the script id=“main-profile.html” you can see the “sub tab” i’m talking about.

I forgot to say. The problem is the subtab’s behavior.