added sketchpad functionality