Refactor and reformat home view.