Created main layout by refactoring HTML