implemented main xml