custom menu items fix

Custom menu items are now represented by widget creation
function, not widget itself.