sketching insert and replace handlers