port over js popover for terms
only show edit buttons if user can edit