updating right template for plots