do off canvas nav and wrap into a function