partial implementation of openNewScratchDialog