Refactoring & commenting
Heavy refactoring: Move rotation setting state to nested static class, and make changes in background; also reset all instances of widget when changes made