modif a little check hwen press next or prev button in graph