Moving debpopup from template.afterRender to template.display.rendered hook
Removed template.afterRender hook