Removed unnecessary methods from the button class.