Replace main layout with custom template