off canvas functions added