Change the UI code to xml generated

We will develop the UI by xml by now