add automatic updating of charts