changed slider to update data on change