add code spinbox code