add events rightclickgraph and dblclickgraph