Added template debug list
Added toggle to display template debug list