split gui class