Move GUI code into gui package