The fact you are asking yourself questions to better your game shows your maturity as a referee.
Sounds like you handled it great. Your next similar experience, you may do it again, or choose another action.
For me, the three P's: personal, provocative, and public. Is it direct, meant to...