updating the plots