added quit dialog