Rearranging some table elements