divide GUI source code