Cleanup preferences controller
Fix scalerange controller