Added course option to learnpath::toggle_visibility()