some changes made to code - using zenity to choose the file