replace ui with flat-ui