Perturbed Hankel determinant, correlation functions and Painlevé equations