add json responses to controllers;