Text this: Global stability of infectious disease models with contact rate as a function of prevalence index