function loading levels from xml