refactoring

controller renders xml directly instead of through view