Save preference
Set initial widget status properly
use -g3 for compatibility

see http://www.clear-code.com/blog/2013/5/8.html