Adds the copy code button to badge modals