add widget code to opac menu