update canvas rectangle page