update canvas styling on canvas index