Added new version of gui with QThread