plugin code to autochange the heading title when a recently created element is clicked into