add condition for showing Learning Resources box on the sidebar