Refactors view and adds a home html page