Added GUI messagebox

BUG: window hangs during recording. Trying to find a workaround using
threads.