Move the headers into the S_SWITCH blocks... Look at how acp_forums.html does it.