add template and logic to make debug in html through debug helper and foundation popup