allow editing only one preference item at time
add tests