converted to flat ui