Changed code to modify layouts of list items in the comments.

I changed code to use components in a list item so that it can layout elements easily.