added gui option to main