Major refactoring: each main div is now persistent