created button class to get coords