Made the flatMakerGui functional hopefully