Improved preferences implementation

* Preferences take effect immediately when a setting has been changed
* Fixed mute button that was not working properly