NEW: refactored getting data for contentbar.