This is a fantastic post. I personally think actively fighting bad habits in the conventional way can be a losing battle. It sounds like you used mindfulness of a form to help you develop a more effective strategy. I have personally had great benefits with it myself.