Added main element to templates