added basic xml attributes, changed fragment behaviour mechanics