merge classes and use IOIOSwingApp