added gui and calc