Changed q1 view to return json