add draw rect edit and update content