created master class for all buttons