optimize SquareFragment