added delegate to the button class.