added some GUI functions