commit draw button code