Implemented Layout and other xml related functionalities