clear selected cells
tweaks to quitting behavior