modify lottery templates