proper update of canvas when adding new box