auto refresh to canvas