improve build.xml and fix bug inside gui initialation