Update page up/down function.