Update Controller class with sendJson method