modify rect control for draw rect controls + XDM messaging