migrating components and properties to xml
fixing main class