Change the UI code to xml generated

We will develop the UI using xml and generated code by now