Graphs events handling