adapted to new UF menu api