add interactivity between text edit and slider