Changed PageAdapter to ControlAdapter (not necessary for the fix but it clearer)