Setting dynamic table layout in ui file