Edit the movement of pages (enter, leave)