successfully refresh the graphic