wired up slider to the model