live updating chart (kinda-working) and fixes