WHO member states agree better ways to detect health threats and set new deadline for pandemic treaty