created ButtonGenerators and added a case for button declaration in OIBlock