Gui tree and some work on client