Add page nav functionality