render calendar or yearmonth only when necessary
organize templates