Bring the scratchpad dialog directly into the plugin to avoid an extra import.