ui restored and adapted to requirejs; minor debugging