I want to make a simple button which will start to loop a function every period of time which I can set. But not only it will start the loop, but also stop the loop if I cli