canvas ref changes