add FlatWindow in GUI