added centered bool to button class