changed the constructor of button to include size of text