replace admin archetypes by manager, add the block capability for 2.4 and create a popup function as Moodle do not reload footer js for HTML generated on the fly