store current flag and paint indicator