added JSON and XML controllers