Went from ids to classes for tabs, made the rotation fully modular. It now picks up new pages if you add them.