add basic gui, no functionality yet also the output is still on console for debugging
support legacy runtime