More work to inject different pages into main div