fix autoscroll directives and add links between pages