tool picking dialog
main routine behaves slightly better