changed main page to querying xml