working stop and reset buttons as well as gevent greenlet usage