Add a copy id method to the widget behavior