start to implements directive to replace flat-ui, refs #115