Added modal popup: controller, template, and activation code to modify(this).