Preperations to gui and xml reader