Making Tabs show and hide containers in the same window

I have form components that work by wrapping them in a container(form) which has worked well for some time.
What I need to do now is tab between different pages of the same form and I wondered if anyone had done this and could steer me in the right direction.

I cannot use windows using my current setup as it would not be inside the same container and the form would break.

Silly me, didn't realise you could turn off the window change.