refactored to toggle control class
added toggleState to preferences class
implementing saved toggle position  - wip