added quit with q keypress