replace PushButton by TextPushButton and RectanglePushButton