Exposed the togglePresentation function.