Created threads and GUI