added methods to button class