added functioning but not updating y-axis slider