added live plots
some fixing for plots