Adds code documentation to the popup handler