added gui handler