The GridManager adds the pages found in the DOM during init, so because we call init several times, we need to reset the markup before.