Added type for topbar in addBarElements call