added gui methods