the while loop is working, but clicking on the extension button won't
get it to stop :(