Make api return idea with branches and root populated

Change controller and view to match this change