added gui functionally