Modified admin controller, adding json response method