slowly adding in flat-ui again. kind of a mess.