Hand 1, I can't see BTN having AA, AK is more likely. Even then it is a stretch as he should be potting that flop to take away any drawing odds. The way I see it before anyone acts is that you have 9 outs to the best hand against AA , 10 outs against AK and 11 outs against everything else you are not ahead of right now. Against a range of QQ+, AK (which is pretty tight, but he did 3-bet pre) you are 58% to win on the flop, and still 51% on the turn. Getting roughly 2 to 1 on the turn I think I call the turn all-in.

Hand 2, This is an easy shove over. If UTG has a set, so be it, odds are UTG has a mid PP and thinks you have AK, AQ. UTG limp plus flat can also be AJ here, which you are crushing.