remove unneeded row markup from templates