added ui and xml loading