some refine. send update broadcast, later receive it to update ui
handle set pref and set logfile now
add missing line change. use tab for better format for later parsing