"how do ya get them to not bark when they are in the crate.?"
i've always recommended a harsh "Quiet!" -when they stop, say something like 'that's better' or a plain 'Good girl/boy' -but in a pleasant tone, not really exciting, or high pitched , just pleasant. if that doesnt seem to work (after you've tried it for a few days and you feel it has no effect whatsoever) you could use a spray bottle after you say 'quiet' if they continue to bark/whine. always praise when they do what you say. i wouldnt recommend the spray bottle for submissive or hand shy types..depending on the dog, the squirt may freak them out so much that they lose the idea of the lesson.
however way you teach your dog(each dog is different, so they learn differently) ALWAYS remember to never let your baby out of the cage while they are barking/whining -this will only give them a positive reaction to their behavior...even if you really were going to take them out anyway, if they start up. you must wait, leave the room, whatever, do what you got to do to make them be quiet before you let them out -you dont want to reinforce the barking -this will only make it harder for you to get them to stop.
*if its a case where the baby is new to the cage and that is why they are throwing a fit, ignore it altogether. because even if you scold him, and walk away, he will see this as attention so he'll keep doing it...and they will throw a tantrum, but its only because its new and they want to be playing, doing what they want to do. it is one of those things where they may resist it in front of you, but you will walk in on them sleeping in it on their own free will..