Adding functional UI with XML parsing