popup moved to template, popup lazy load with deferred