create a load classes from xml function & layout changes