Adding XML and JSON views