implemented tool checkout using ajax