Added saving language to preferences