Added event listener support to graph