adding auto order trigger to onHand function