updated plots so they draw only after everything is finished