Implemented loading of UI from XML files.