Added comments to loadUI().