Add json responses for the index actions