Futher project's controller changes for json communication.