Changes in xml and in main .java