fix #45
fix 51 change preferredIndex input into spinbox for online lookup edit