Split GUI code into individual files