Creation of the popups and their handler. Amelioration of some templates.