added quit feature