made this work with right click to quit