Refactor SidebarContent and add fallback for undefined member names. Co-authored-by: Moheeb Zara <[email protected]>