On Painlevé/gauge theory correspondence