Well, you said that every time you got rivered you played hard the hand and your opponent hit on the river so they were just bad beats. The key is that you thought you played the hands right pushing hard with the odds
in your favour, and thatīs the most important thing. Everybody know that in those situations youīre going to lose sometimes, but in the long run youīre going to have a profit. The problem is that in the moment you have a bad beat itīs hard to stay cool and think about it. Itīs hard, but you have to learn how to do it. Every poker player is going to have bad beats, so is an important part of the game to accept them and donīt let them affect your mind, making you committe some mistakes you wouldnīt do under normal circumstances (and making you lose more money) or just make you think for hours after the game about it and ruin your day.
In relation to the hand you mentioned, i think that you played it right. In my opinion short handed and in the button, AT is a must raise. Then you did right protecting your top pair by betting hard. Your opponent kept calling and you went all in with the best hand with 1 card to come. Your opponent had 3 outs, so it was obviously a bad beat. You played it right.
Now, whatīs the solution? In relation to your game, keep playing like that because in the long run youīre going to win. In relation to the the post-bad beats, staying cool needs practice. After the bad beat, donīt think about that hand and focus on the moment. If you made the right move or not, is a matter you should consider and analyze AFTER the game. To clear your mind, focus in playing the best poker you can at the moment and let the past go away, it may be difficult, but if you concentrate on doing it and with some time youīll learn.
Remember that analyzing the hand is something you must do after the game, the only thing you have to do after a bad beat is nothing. Yes, donīt think in anything related with that hand (just the information you got about your opponent), just focus on your game and youīll have no problems.
The best way to learn how to do that in my opinion is reading the book "Zen in the Art of Archery". If you want it send me a PM with your email (hopefully a gmail. If you donīt have a gmail account tell me and iīll give you an invite) and iīll send you the book. 60 pages worth reading. It doesnīt talk about poker itself, but remember that poker is an art.