added quit to front end