Changed from timer triggered show graph to callback