Weirdness with tab restore from file

Weirdness with tab restore from file

I've built a work-around to being able to re-add a deleted tab.
The workaround builds the initial pages in an array, then echo's the contents out - and, at the same time, saves the contents to a temp directory.
The reason I need to do it this way is I don't want to just "hide" data because some of it needs to be secured (like admin pages, etc) and users could easily view source.
I have everything working, but for some odd reason, when I re-add the page from disk, some of the portlet headers are missing along with some general 'funkiness' and other missing items.
I'm stumped as to what to try and fix and was wondering if anyone might be able to shed some light.
The website is at:
<a href="http://lztest.gdd.net">http://lztest.gdd.net</a>
login/pass is guest/guest
If you remove any of the 3 initial tabs, you can re-add them from the menu.
If I restore the main tab, the portlet headers don't show up (and also the watermarks in the time fields aren't working)
If I restore the graphs page, all the graphs are missing.
If I restore the Table page, the portlet header is missing (and, oddly, the table isn't sized properly).<br clear="all">
--
______________________________________________________________
Clayton Dukes
______________________________________________________________


--