graph working, adding slider