made a custom class button

reduced code by making a new button class