Workig version bms & tn 1.Handled errors on ajax calls and made ajax calls sync