bugfix #5 migrate flat ui component

bugfix #5