modified for startup dialog