slider and spinbox now work togever, added a view class