Add class names to tables cells + move ideal to new row