Adding max page option in footer.