early implementation of pui:menu