move create canvas functionality into create functin