Well there is no magic trick and how to mantain quads is something you learn by experience. I personally prefer sacrificing a few quads instead of excessive use of loops. I recomend that you look at other peoples topology, copy then after a while you learn how to more succesfully make quads. Good luck.