add xml and text view resolver