create basic page rotation feature