Added closure in Ajax call back