link page to xml and put most dialogs to .java