adds off canvas functionality