fixed the offcanvas function on docs