Code review of the main template