GUI added to CUDA code