add sidebar classes properly for new API