replace use of RectangleButton with TextButton