added threads + button functions

still strange collision with QTimer