fixed sidebar issue of not showing content when clicking to open