dynamic total page option