added theService class and xml layout