fix page up/down
not sure if this is the expected behaviour in all situations, but at least it does something sensible now