setup canvas in index