finally got the preferences working
got the whole minus the resize working