add try and catch in dataCon

try and catch in datacon, add browse function,
changing maxDiff value,