adding ids to sides and rows
debugged creation of row ids