Refactor home index page