added JSON API controller
formatting