You played both this hand and the other hand absolutely fine. I'll elaborate real quick on this hand.
Preflop - your raise is fine. You could choose to call also, but I definitely don't like potting it. A raise serves to build up the pot and exploit an equity edge here, but your hand isn't strong enough to isolate anyone. So calling works, and maybe is better if you have a problem getting away from marginal spots postflop (calling allows you to not tie yourself in), but raising for value to 3x or 4x is fine too.
Flop - you should be willing to get it all in here, generally, at these stakes (and in fact, at any stakes as long as the game is relatively loose and the players are relatively bad, i.e. they will commit themselves with weak hands like two pair or an oesd). So pot raise is fine, and if you can, shove (I don't think you could shove when it got back to you, because UTG's shove was less than your raise, right?).
Turn/River - checking down is absolutely fine. On the river, if you had a decent pair, I would value bet against SB because you have a chance to 3/4 if he called the flop action with just a nut low draw. Without anything for high, betting isn't great because it's a dry sidepot and there's very little chance you can actually promote just A-J high to be good.
Aseem
i agree pretty much completely. i'm a bit of an action junkie, though, and will overshove the flop about 90% of the time (if i can? i'm not sure whether the site you're on would allow you to here). we're drawing both ways and i like to ensure that i get to see two cards while i'm a favorite over every one way hand and even some two way hands. but the line you took is just fine and definitely the more standard one.
at higher limits i would pot this hand preflop, but i think that would be a mistake at a .25 game. nh.