added gui drawing