moved table row ends where they should be