The reason I am not using loops is that the UI code is automatically generated.