Added callbacks to graphs