modify view to show json result