modified button class init method