Now the preferences panel are working (still a lot of things to be done)
Added more settings in Preferences window