added a home view and reorganized templates