added Apply, Discard buttons to settings dialog, properly updating privacy settings on discard