delegate gui to new class