clean up the logic on the people sidebars

related to changes for #273