Collecting BAH While Living Out of State?

I plan on returning to Wisconsin for good but I plan on collecting San Francisco CA BAH rates Most of my classes are online but I have one class which only takes place twice a month on campus I wonder if I could catch a fly to San Francisco twice a month from Wisconsin and still collect the BAH I also wonder if I can change my drivers license to a Wisconsin License since I plan to mainly live and vote there?