switch span to row