[OnDemand] add common library module, recode menu to use new common code that can be shared across plugin's